package com.friend.ui.activity;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.friend.R;

/**
 * 作者： njb
 * 时间： 2019/1/30 10:46
 * 描述：
 * 来源：
 */
@Route(path = "/com/TestActivity")
public class TestActivity extends AppCompatActivity {
    @Autowired
    public String name;
    private TextView textView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        ARouter.getInstance().inject(this);
        initView();
    }

    private void initView() {
        textView = findViewById(R.id.name);
        Log.d("name",name);

        textView.setText(name);
    }
}
